import request from '@/utils/request'

// 查询学习海报列表
export function listPoster(query) {
  return request({
    url: '/system/poster/list',
    method: 'get',
    params: query
  })
}

// 查询学习海报详细
export function getPoster(posterId) {
  return request({
    url: '/system/poster/' + posterId,
    method: 'get'
  })
}

// 新增学习海报
export function addPoster(data) {
  return request({
    url: '/system/poster',
    method: 'post',
    data: data
  })
}

// 修改学习海报
export function updatePoster(data) {
  return request({
    url: '/system/poster',
    method: 'put',
    data: data
  })
}

// 删除学习海报
export function delPoster(posterId) {
  return request({
    url: '/system/poster/' + posterId,
    method: 'delete'
  })
}
